#include <iostream>

using namespace std;

const int N = 1010;

int maxv, minv = 1e3 + 10;

int a[N];

int main()
{
	int n;
	cin >> n;
	
	for (int i = 1; i <= n; i ++ )
	{
		cin >> a[i];
		maxv = max(a[i], maxv);
		minv = min(a[i], minv);
	}
	
	int t = maxv - minv;
	
	for (int i = 1; i <= n; i ++ )
	{
		int res = (a[i] - minv) * 1.0 / (t) * 100;
		cout << res << ' ';
	}
	
	return 0;
}